home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / music / cthugha5.zip / CTHU5SRC.ZIP / CTHUGHA.H < prev    next >
C/C++ Source or Header  |  1994-08-19  |  3KB  |  120 lines

  1. //
  2. // Cthugha - Audio Seeded Image Processing
  3. //
  4. // Zaph, Digital Aasvogel Group, Torps Productions 1993-1994
  5. //
  6. // Copyright Information:
  7. // ======================
  8. // 
  9. // Some parts of the source are from the public domain and are not
  10. // copyrighted.
  11. // 
  12. // Some parts of the source bear explicit copyright notices from the
  13. // author and are subject to the conditions listed there by the author.
  14. // 
  15. // The remainder of the source (not already public domain, no explicit
  16. // author's copyright notice) is Copyright 1994 by Torps Productions
  17. // (a loosely associated and ever-growing group of fanatic programmers).
  18. //
  19. // The source code may be copied freely and may be used in other programs
  20. // under the following conditions:
  21. //  It may not be used in a commercial program without prior permission.
  22. //  Please credit the author (in general, credit Cthugha and Torps
  23. //  Productions) as the source of the code.
  24. // 
  25. // This copyright notice is grafted from the Fractint copyright notice.
  26. //
  27. //
  28. // Modifying the code:
  29. // ===================
  30. //
  31. // Feel free to modify this source code, HOWEVER, please send any working
  32. // changes/fixes to me (zaph@torps.apana.org.au) for inclusion in future
  33. // versions of the code.
  34. //
  35. // Distributing the code:
  36. // ======================
  37. //
  38. // Feel free to distribute this code, as long as it is complete and contains
  39. // all copyright information that was included in the original.
  40. //
  41. // Legal Issues:
  42. // =============
  43. //
  44. // What legal issues ???
  45. //
  46. // Come on guys, this is for *fun*, get on with it, make it great, make us
  47. // all famous!!!
  48. //
  49. //                                                zaph, 12May94
  50.  
  51. #ifndef peek
  52.  
  53. #define peek( a,b )( *( (int  far* )MK_FP( (a ),( b )) ))
  54. #define peekb( a,b )( *( (char far* )MK_FP( (a ),( b )) ))
  55. #define poke( a,b,c )( *( (int  far* )MK_FP( (a ),( b )) ) =( int )( c ))
  56. #define pokeb( a,b,c )( *( (char far* )MK_FP( (a ),( b )) ) =( char )( c ))
  57.  
  58. #endif
  59.  
  60. #define TRUE 1
  61. #define FALSE 0
  62.  
  63. #define BUFF_WIDTH  320
  64.  
  65. #define BUFF_HEIGHT 204
  66. #define BUFF_SIZE 65280
  67.  
  68. #define BUFF_BOTTOM 200
  69. #define Y_MAX (BUFF_HEIGHT-1)
  70.  
  71. #define NUMTABLES   10
  72. #define NUMWAVES    23
  73. #define NUMDISPLAYS 2
  74. #define NUMMASSAGES 3
  75.  
  76. #define NUMMODES    8
  77. #define NUMCOMBINATIONS 1
  78. extern int normal_flame;
  79. extern int normal_wave;
  80. extern int curtable;
  81. extern int massageStyle;
  82. extern int curdisplay;
  83. extern int table[NUMTABLES][256];
  84. extern int stereo[BUFF_WIDTH][2];
  85. extern unsigned char buff[BUFF_HEIGHT][BUFF_WIDTH];
  86. extern int minnoise;
  87. extern int min_time,rand_time;
  88.  
  89. #define LUTSIZE 3*256
  90.  
  91.  
  92. extern int init_sbpro(void);
  93. extern void close_sbpro(void);
  94. extern int get_stereo(void);
  95. extern void change_wave(int wavenum);
  96. extern int change_flame(int flamenum);
  97. extern void next_wave(void);
  98.  
  99.  
  100. #define MASTER_VOL  0x22
  101. #define VOC_VOL     0x04
  102. #define LINE_VOL    0x2e
  103. #define FM_VOL        0x26
  104. #define CD_VOL        0x28
  105.  
  106. #define RECORD_SRC  0x0C
  107.  
  108. #define MIC        0x11
  109. #define LINE        0x17
  110. #define CD        0x13
  111.  
  112.  
  113. extern unsigned  tempBuff;
  114. extern long      buffer_size;
  115. extern char      far *voice_buffer ;
  116. extern unsigned  int voice_seg;
  117. extern int debug_mode;
  118. extern unsigned int sample_rate;
  119.  
  120.